package cn.edu.lcu.cs.javalearning.clazz;

import org.junit.jupiter.api.Test;

public class IntegerDemo {
	@Test
	public void valueOf() {
		String hexString = "face";
		Integer number = Integer.valueOf(hexString, 16);
		System.out.println(number);;
		System.out.println(Integer.toHexString(number));
		System.out.println(Integer.toBinaryString(number));
		System.out.printf("%x\n", number);
	}

}
